<template>
	<view>
		<!-- 
		1、页面跳转之使用组件跳转
		<navigator url="/pages/login">登录</navigator>
		<navigator open-type="reLaunch" url="/pages/login">重启</navigator> 
		-->
		<!-- 2、页面跳转之使用API跳转 -->
		<button @click="toLogin" type="primary">登录</button>
		<button @click="restart" type="default">重启</button>
	</view>
</template>
<script setup>
	function toLogin () {
		uni.navigateTo({url: '/pages/login',animationType:'fade-in'});
	}
	
	function restart () {
		uni.reLaunch({url:'/pages/login'});
	}
</script>
<style>
</style>
